package cn.dogger.easyboot.init.domain;

import cn.dogger.easyboot.init.enums.FieldTypeEnums;
import lombok.Data;
import lombok.experimental.Accessors;
import org.aspectj.lang.annotation.Aspect;
import org.springframework.data.annotation.AccessType;

/**
 * 字段实体
 *
 * @author dogger
 * 2022/7/19 22:09
 */
@Data
@Accessors(chain = true)
public class FieldsEntity {

    //字段名
    private String name;
    //字段类型
    private String type;
    //默认值
    private String defaultValue;
    //字段长度
    private int fieldLength;
    //小数点后x位数
    private int decimalPoint;
    //字段允许为空
    private boolean allowNull;
    //是否为主键
    private boolean keyFlag;
    //注释
    private String remark;
    //字段类型(枚举)
    private FieldTypeEnums typeEnums;
}
